package com.njwb.day18.thd02;

public class YieldDemo01 {
    public static void main(String[] args) {
        //创建线程体代码
        Runnable even = new MyRunnable2();

        Runnable odd = new MyRunnable3();

        Thread evenThread = new Thread(even,"偶数线程");
        Thread oddThread = new Thread(odd,"奇数线程");

        evenThread.start();

        oddThread.start();

    }
}
